﻿// See https://aka.ms/new-console-template for more information
//public class Employee4
//{
//    public string id;
//    public string name;

//    public Employee4()
//    {
//    }

//    public Employee4(string name, string id)
//    {
//        this.name = name;
//        this.id = id;
//    }

//    public static int employeeCounter;

//    public static int AddEmployee()
//    {
//        return ++employeeCounter;
//    }
//}

//class MainClass : Employee4
//{
//    static void Main()
//    {
//        Console.Write("Enter the employee's name: ");
//        string name = Console.ReadLine();
//        Console.Write("Enter the employee's ID: ");
//        string id = Console.ReadLine();

//        // Create and configure the employee object:
//        Employee4 e = new Employee4(name, id);
//        Console.Write("Enter the current number of employees: ");
//        string n = Console.ReadLine();
//        Employee4.employeeCounter = int.Parse(n);
//        Employee4.AddEmployee();

//        // Display the new information:
//        Console.WriteLine("Name: {0}", e.name);
//        Console.WriteLine("ID:   {0}", e.id);
//        Console.WriteLine("New Number of Employees: {0}",
//                      Employee4.employeeCounter);
//    }
//}
//namespace shh
//{
//    class Test
//    {
//        //静态成员变量
//        static int x = y;
//        static int y = 5;

//        static void Main()
//        {
//            Console.WriteLine(Test.x);
//            Console.WriteLine(Test.y);

//            Test.x = 99;
//            Console.WriteLine(Test.x);
//        }
//    }

//}